<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2014/6/9
  Time: 13:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title></title>
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.css">
    <script type="text/javascript" src="/js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="/lib/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div>
    <div>
    <c:if test="${count!=null}">
        <div class="alert alert-success " >已算出${count.count}</div>
    </c:if>
    </div>
    <c:if test="${key!=null&&keyName!=null}">
        <span class="label label-danger"> Username:<br><h3 style="color: red">${keyName}</h3><br></span>
        <span class="label label-danger"> License:<br><h3 style="color: red">${key}</h3><br></span>
    </c:if>
    <form action="/ideaKey/getRegistrationCode.post" method="POST" onsubmit="return checkform();">
    <div class="input-group">
       <input type="text" name="keyName" class="form-control">
      <span class="input-group-btn">
        <button class="btn btn-default" type="submit" >Go!</button>
      </span>
     </div>
    </form>
</div>
</body>
<script>

function checkform(){
    var    bln    =    window.confirm("只供测试用途，确定吗？");
    if(bln==false){
        return false;
    }
}

</script>
</html>
